package com.dyh.quickdemo.demos.asynclbd;

import com.dyh.quickdemo.bizDemo.LbdInF;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;

import java.io.Serializable;
import java.util.concurrent.ForkJoinPool;

/*
@Author=Joey Wheeler
@Date=2020/12/23 10:38
*/
public class AsyncLbd {


    @Test
    public void test(){
        AsyncLbd.async((Runnable & Serializable & LbdInF.CircuitBreaker) this::pushWms);
    }

    public void pushWms(){

    }



    public static void async(Runnable r){
        ForkJoinPool.commonPool().execute(r);
    }
}
